package Euler54;

public class Test {
	public static void main(String[] args) {
		//Card test.
		/*Card card1 = new Card("AC");	
		System.out.println(card1.toString());*/
		
		//Hand test.
		Hand hand1 = new Hand("4H 2D 7C 7D 4S");
		Hand hand2 = new Hand("4C 4D 7S 7S 8D");
		
		System.out.println("Player 1 has: " + hand1.getHandRank());
		System.out.println("Player 2 has: " + hand2.getHandRank());
		
		int comp = hand1.compareTo(hand2);
		if(comp>0)
		{
			System.out.println("Player 1 wins!");
		}
		else if(comp<0)
		{
			System.out.println("Player 2 wins!");
		}
		else
		{
			System.out.println("Tie!");
		}
	}
}
